﻿using Microsoft.AspNetCore.Mvc;
using Microsoft.AspNetCore.Mvc.Filters;
namespace ED.Common.Filters
{
    public class ResultFilter : IAsyncResultFilter, IFilterMetadata
    {
 

        public ResultFilter()
        {

        }

        public async Task OnResultExecutionAsync(ResultExecutingContext context, ResultExecutionDelegate next)
        {
            try
            {
                if (!(context.Result is ObjectResult))
                {

                }
            }
            catch (Exception ex2)
            {
                Exception ex = ex2;
             //   logger.Error("ResultFilter报错:" + ex?.Message + "\r\n堆栈: " + ex?.StackTrace);
            }

            await next();
        }
    }
}
